home *** CD-ROM | disk | FTP | other *** search
/ The History of Denim / The History of Denim.iso / pc / help.dir / 00003.ls < prev    next >
Encoding:
Text File  |  1997-11-14  |  1.1 KB  |  38 lines

  1. on exitFrame
  2.   global MouseMGR, helphighlighted
  3.   if MouseMGR = "HelpNav" then
  4.     jumptohelpscreen()
  5.     WindowFunctions()
  6.     set MouseMGR to EMPTY
  7.   end if
  8.   MoveMyWindow()
  9.   jumptohelpscreen_doubleclick()
  10.   go(the frame)
  11. end
  12.  
  13. on mouseDown
  14.   global CatchMouseX, CatchMouseY, HelpMoving, helphighlighted, MouseMGR
  15.   set CatchMouseX to the mouseH
  16.   set CatchMouseY to the mouseV
  17.   if inside(point(the mouseH, the mouseV), rect(61, 0, 142, 25)) then
  18.     set HelpMoving to 1
  19.   end if
  20.   if inside(point(the mouseH, the mouseV), rect(16, 48, 146, 164)) then
  21.     set helphighlighted to the mouseLine
  22.     set MouseMGR to "HelpNav_Done"
  23.   end if
  24.   if the frameLabel = "Main" then
  25.     set MyTestrects to [rect(14, 180, 165, 201)]
  26.     set Myclickedrects to [rect(14, 180, 165, 201)]
  27.     set MyClickGRFX to ["help_pal_clck"]
  28.     repeat with d = 1 to count(MyTestrects)
  29.       if inside(point(the mouseH, the mouseV), getAt(MyTestrects, d)) then
  30.         puppetSprite(50, 1)
  31.         set the memberNum of sprite 50 to member getAt(MyClickGRFX, d)
  32.         set the rect of sprite 50 to getAt(Myclickedrects, d)
  33.         updateStage()
  34.       end if
  35.     end repeat
  36.   end if
  37. end
  38.